//package com.freesky.provider.content.controller;
//
//import com.freesky.common.dao.entity.PanelContent;
//import com.freesky.common.pojo.DataTablesResult;
//import com.freesky.common.utils.reponse.JSONResponse;
//import com.freesky.common.utils.reponse.JSONResponseDiretor;
//import com.freesky.provider.content.service.ContentService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
///**
// * @author: 陈玉林
// * @modifiedBy:
// * @date: Create In 15:44 2018/11/28
// * @description:
// */
//@RestController
//public class ContentController {
//
//    @Autowired
//    private ContentService contentService;
//
//    @RequestMapping(value = "/content/list/{panelId}", method = RequestMethod.GET)
//    public DataTablesResult getContentByCid(@PathVariable("panelId") int panelId) {
//
//        DataTablesResult result = contentService.getPanelContentListByPanelId(panelId);
//        return result;
//    }
//
//    @RequestMapping(value = "/content/add", method = RequestMethod.POST)
//    public JSONResponse addContent(@RequestBody PanelContent panelContent) {
//        return contentService.addPanelContent(panelContent);
//    }
//
//    @RequestMapping(value = "/content/update", method = RequestMethod.POST)
//    public JSONResponse updateContent(@RequestBody PanelContent panelContent) {
//
//        return contentService.updateContent(panelContent);
//    }
//
//    @RequestMapping(value = "/content/del/{ids}", method = RequestMethod.DELETE)
//    public JSONResponse addContent(@PathVariable("ids") int[] ids) {
//
//        for (int id : ids) {
//            contentService.deletePanelContent(id);
//        }
//        return JSONResponseDiretor.buildSuccessJSONResponse(null);
//    }
//
//
////    @RequestMapping(value = "/goods/thank", method = RequestMethod.GET)
////    public Result<List<Panel>> getThankGoods() {
////
////        List<Panel> list = contentService.getThankGoods();
////        return new ResultUtil<List<Panel>>().setData(list);
////    }
//
//
//}
